package com.ruoyi.resturant.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

@ApiModel(value = "轮播图实体", description = "轮播图实体")
public class ResBanner {

    @ApiModelProperty("编号")
    private long id;

    /**
     * 轮播图名称
     */
    @NotBlank(message = "轮播图名称不能为空")
    @Size(min = 3, max = 20, message = "轮播图名称长度必须在3和20之间")
    @ApiModelProperty("标题")
    private String name;

    @ApiModelProperty("广告轮播图")
    private String pic;

    @ApiModelProperty("跳转链接")
    private String targetUrl;

    @ApiModelProperty("排序")
    private int sort;

    @ApiModelProperty("状态(1:正常，0:禁用)")
    private String status;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 更新者
     */
    @ApiModelProperty("更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    private Date updateTime;


    public ResBanner() {
    }


    /**
     * 获取
     *
     * @return id
     */
    public long getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id
     */
    public void setId(long id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     *
     * @return pic
     */
    public String getPic() {
        return pic;
    }

    /**
     * 设置
     *
     * @param pic
     */
    public void setPic(String pic) {
        this.pic = pic;
    }

    /**
     * 获取
     *
     * @return targetUrl
     */
    public String getTargetUrl() {
        return targetUrl;
    }

    /**
     * 设置
     *
     * @param targetUrl
     */
    public void setTargetUrl(String targetUrl) {
        this.targetUrl = targetUrl;
    }

    /**
     * 获取
     *
     * @return sort
     */
    public int getSort() {
        return sort;
    }

    /**
     * 设置
     *
     * @param sort
     */
    public void setSort(int sort) {
        this.sort = sort;
    }

    /**
     * 获取
     *
     * @return status
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置
     *
     * @param status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 获取
     *
     * @return createBy
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * 设置
     *
     * @param createBy
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /**
     * 获取
     *
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     *
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     *
     * @return updateBy
     */
    public String getUpdateBy() {
        return updateBy;
    }

    /**
     * 设置
     *
     * @param updateBy
     */
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * 获取
     *
     * @return updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     *
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


}


